package com.chief.mybatisplus;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;


@TableName(value = "aaaaa",excludeProperty = "age")
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String nn;

    private String age;

    @TableField("sex")
    private SexEnum sex;

    @TableLogic(value = "0",delval = "1")
    private Integer del;

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public String getNn() {
        return nn;
    }

    public void setNn(String nn) {
        this.nn = nn;
    }

    public SexEnum getSex() {
        return sex;
    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nn='" + nn + '\'' +
                ", age='" + age + '\'' +
                ", sex=" + sex +
                ", del=" + del +
                '}';
    }
}
